import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/api/sysDb/add',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/api/sysDb/edit',
    method: 'post',
    data
  })
}

export function qryCondition(data) {
  return request({
    url: '/api/sysDb/selectConditionPage?page='+(data.page.page-1)+'&size='+data.page.size+
    '&dbType='+data.dbType+'&jdbcDriver='+data.jdbcDriver+'&jdbcUrl='+data.jdbcUrl,
    method: 'get'
  })
}

export default { add,edit,qryCondition }
